import re

s = "10"
data = re.match(r"[1-9]?\d?$|100$",s)

print(data)